package com.finer.remote.warehouse;

import com.finer.dto.warehouse.WarehouseInfoPageDTO;
import com.finer.entity.ResponseMessage;
import com.finer.entity.stock.FinerWarehouse;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangenhao
 * @interfaceName FinerWarehouseRemote
 * @description 仓库remote接口
 * @date 2024-10-21 下午2:44
 */
@RestController
@RequestMapping("/warehouseInfo")
public interface FinerWarehouseRemote {

    @RequestMapping("/page")
    ResponseMessage getWarehouseInfoPage(WarehouseInfoPageDTO warehouseInfoPageDTO);

    @RequestMapping("/add")
    ResponseMessage addWarehouseInfo(@RequestBody FinerWarehouse finerWarehouse);

    @RequestMapping("/{id}")
    ResponseMessage getWarehouseInfoById(@PathVariable Integer id);

    @RequestMapping("/checkHouseCode")
    ResponseMessage checkHouseCode(String houseCode);

    @RequestMapping("/update")
    ResponseMessage updateWarehouseInfo(@RequestBody FinerWarehouse finerWarehouse);

    @RequestMapping("/delete")
    ResponseMessage deleteWarehouseInfo(Integer id);
}
